﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class InventoryZoneDataReportMessage : BaseTibcoMessage<InventoryZoneDataReportMessageBody>
    {
        public InventoryZoneDataReportMessage()
        {

        }
        public InventoryZoneDataReportMessage(InventoryZoneDataReportMessageBody body, string inboxName = "", string listener = "") : base("InventoryZoneDataRequest", body, inboxName, listener)
        {
        }
    }


    public class InventoryZoneDataReportMessageBody : MachineEventBase
    {
        public InventoryZoneDataReportMessageBody()
        {
        }

        public InventoryZoneDataReportMessageBody(string machineName, List<Zone> zones)
        {
            MachineName = machineName;
            ZoneList = new ZoneList(zones);
            EventUser = machineName;
        }

        [XmlElement("ZONELIST")]
        public ZoneList ZoneList { get; set; }
    }
}
